<?php
/**
 * Infectamic: browser game (http://infectamic.goldzoneweb.info)
 * Copyright 2011, Loic Chardonnet
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 */
?>
<!doctype html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
    <head>
        <!-- Basic Page Needs
        ================================================== -->
        <?php echo $this->Html->charset('utf-8'); ?>

        <title>Infectamic - <?php echo $title_for_layout; ?></title>
        <?php echo $this->ShortTag->meta(array(
            'name'      => 'Description',
            'content'   => 'Browser game',
        )); ?>

        <?php echo $this->ShortTag->meta(array(
            'name'      => 'Keywords',
            'content'   => 'Browser game, online RPG',
        )); ?>

        <?php echo $this->ShortTag->meta(array(
            'name'      => 'Language',
            'content'   => 'en',
        )); ?>

        <?php echo $this->ShortTag->meta(array(
            'name'      => 'robots',
            'content'   => 'index, follow, all',
        )); ?>

        <?php echo $this->ShortTag->meta(array(
            'name'      => 'Author',
            'content'   => 'Loic Chardonnet'
        )); ?>

        
        <!--[if lt IE 9]>
            <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

        <!-- Mobile Specific Metas
        ================================================== -->
        <?php echo $this->ShortTag->meta(array(
            'name'      => 'viewport',
            'content'   => 'width=device-width, initial-scale=1, maximum-scale=1',
        )); ?>


        <!-- CSS
        ================================================== -->
        <?php echo $this->Html->css('base'); ?>

        <?php echo $this->Html->css('skeleton'); ?>

        <?php echo $this->Html->css('layout'); ?>

        <?php echo $this->Html->css('main'); ?>

        <?php echo $this->Html->css('table'); ?>

        <?php echo $this->Html->css('header'); ?>

        <?php echo $this->Html->css('content'); ?>

        <?php echo $this->Html->css('footer'); ?>

        <?php echo $this->Html->css('cake-sql-log'); ?>

        <?php echo $this->Html->css('cake-debug'); ?>

        <?php echo $this->Html->css('cake-paging'); ?>

        <?php echo $this->Html->css('definition-list'); ?>

        <?php echo $this->Html->css('forms'); ?>

        <?php echo $this->Html->css('form-errors'); ?>

        <?php echo $this->Html->css('notices-and-errors'); ?>

        <?php echo $this->Html->css('buttons'); ?>
        
        <!-- Favicons
        ================================================== -->
        <?php echo $this->ShortTag->link(array(
            'rel'   => 'shortcut icon',
            'href'  => '/favicon.ico',
        )); ?>

        <?php echo $this->ShortTag->link(array(
            'rel'   => 'apple-touch-icon',
            'href'  => '/apple-touch-icon.png',
        )); ?>

        <?php echo $this->ShortTag->link(array(
            'rel'   => 'apple-touch-icon',
            'href'  => '/apple-touch-icon-72x72.png',
            'sizes' => '72x72',
        )); ?>

        <?php echo $this->ShortTag->link(array(
            'rel'   => 'apple-touch-icon',
            'href'  => '/apple-touch-icon-114x114.png',
            'sizes' => '114x114',
        )); ?>

    </head>
    <body>
        <!-- Header
        ================================================== -->
        <div id="header" class="container">
            <div id="logo" class="two columns">
                <?php echo $this->Html->image('logo.png', array('alt' => 'Logo')); ?>

            </div>

            <div class="five columns">
                <h1><?php echo $this->Html->link('Infectamic', '/'); ?></h1>
            </div>

            <div  class="nine columns">
                <h1><?php echo $title_for_layout; ?></h1>
            </div>
        </div>

        <!-- Content
        ================================================== -->
        <div id="content" class="container">
            <div class="sixteen columns">
                <?php echo $this->Session->flash(); ?>

            </div>

            <?php echo $content_for_layout; ?>
        </div>

        <!-- Footer
        ================================================== -->
        <div id="footer" class="container">
            <div class="eight columns">
                <nav>
                    <h2><?php __('Powered by'); ?></h2>

                    <ul>
                        <li><?php echo $this->Html->link('GoldZone Web', 'http://www.goldzoneweb.info/', array('title' => __('Web hosting', true))); ?></li>
                        <li><?php echo $this->Html->link('CakePHP', 'http://cakephp.org/', array('title' => __('PHP framework', true))); ?></li>
                        <li><?php echo $this->Html->link('Skeleton', 'http://www.getskeleton.com/', array('title' => __('Web boilerplate', true))); ?></li>
                    </ul>
                </nav>
            </div>

            <div class="eight columns">
                <nav>
                    <h2><?php __('About'); ?></h2>

                    <ul>
                        <li><?php echo $this->Html->link('@epiloic', 'https://twitter.com/#!/epiloic', array('title' => __('Author\'s Twitter account', true))); ?></li>
                        <li><?php echo $this->Html->link('Google code', 'http://code.google.com/p/infectamic/', array('title' => __('Sources, documentation and issues', true))); ?></li>
                        <li><?php echo $this->Html->link('MIT license', 'http://www.opensource.org/licenses/mit-license.php', array('title' => __('Open source License', true))); ?></li>
                    </ul>
                </nav>
            </div>
        </div>
        <?php echo $this->element('sql_dump'); ?>

        <!-- JS
        ================================================== -->
        <?php echo $this->Javascript->link('http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js'); ?>
        <?php echo $this->Javascript->link('/js/include_jquery.js'); ?>
        <?php echo $this->Javascript->link('/js/app.js'); ?>
        <?php echo $scripts_for_layout; ?>

    </body>
</html>
